<script lang="ts" setup>
import { onMounted } from 'vue';
import { useNotificationStore } from '@/store/notificationStore';
import Notification from '@/components/Notification.vue';

const notificationStore = useNotificationStore();

// 初始化示例通知
onMounted(() => {
  // 如果没有通知，则添加一些示例通知
  if (notificationStore.notifications.length === 0) {
    notificationStore.initSampleNotifications();
  }
});
</script>

<template>
  <Notification />
</template>
